<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="com.wxtf.platform.plugins.user.*"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
	UserBean user = (UserBean) request.getSession().getAttribute("userBean");

	String _db = user.getDbType();//软件配置时使用的数据库类型
	String maxTab = user.getGlobalMap().get("maxTab");
	String _maxTab = (null == maxTab) ? "1" : maxTab;//打开最大的tab页数量
	
	String css = user.getUserCss();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<base href="<%=basePath%>" />

		<title>一汽集团人口与计划生育信息管理系统</title>
		<meta http-equiv="pragma" content="no-cache" />
		<meta http-equiv="cache-control" content="no-cache" />
		<meta http-equiv="expires" content="0" />
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

		<link type="text/css" rel="stylesheet" href="ligerUI/skins/ligerui-icons.css" />
		<link type="text/css" rel="stylesheet" href="ligerUI/skins/<%=css%>/css/ligerui-all.css" />
		<link type="text/css" rel="stylesheet" href="resource/css/style.css" />
		<style type="text/css">
		.l-tab-content-item iframe{height:97%;}
		</style>
		<script type="text/javascript">
			var _db = '<%=_db%>';
			var _maxTab = '<%=_maxTab%>';
			var _userId = "<%=user.getUserId()%>";
			var _nowOrg = "<%=user.getCurOrgId()%>";
			var _userCss = "<%=user.getUserCss()%>";
			var _basePath = "<%=basePath%>";
		</script>
		<script type="text/javascript" src="js/jquery/jquery-1.7.2.js"></script>
		<script type="text/javascript" src="ligerUI/js/core/base.js"></script>
		<script type="text/javascript" src="ligerUI/js/ligerui.min.js"></script>
		<script type="text/javascript" src="ligerUI/js/plugins/ligerTree.js"></script>
		<script type="text/javascript" src="ligerUI/js/plugins/ligerTab.js"></script>
		
		<script type="text/javascript" src="js/common.js"></script>
		<script type="text/javascript" src="js/validata.js"></script>
		<script type="text/javascript" src="js/index.js"></script>
	</head>

	<body>
		<div id="logoDiv" style="line-height: 75px; background:url(ligerUI/skins/<%=css%>/bg-bar.gif); margin-left: 5px;">
			<!-- flash Logo -->
			<div style=" height: 1px;"></div>
			<div style="height: 69px; line-height: 69px; width: 800px;">
				<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="800" height="70">
	                <param name="movie" value="ligerUI/skins/<%=css%>/fla-001.swf" />
	                <param name="quality" value="high" />
	                <embed src="ligerUI/skins/<%=css%>/fla-001.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="800" height="70"></embed>
				</object>
			</div>
			
			
			<!-- 登录信息 -->
			<div style="position: absolute; right: 50px; top: 18px; margin-left: 4px; height: 45px; line-height: 45px; color: #FFFFFF">
				<div class="expand-down">
					<ul>
						<li><a><img align="absmiddle" src="resource/images/user.png" alt="用户" />用户:<%=user.getUserrelName()%>&nbsp;&nbsp;</a></li>
						<li><a><img align="absmiddle" src="resource/images/org.png" alt="机构" />机构:<%=user.getCurOrgName()%>&nbsp;&nbsp;</a></li>
						<li><a style="cursor: pointer;" onclick="exitBye();return false;"><img align="absmiddle" src="resource/images/logout1.png" alt="退出"/>退出</a></li>
					</ul>
				</div>
			</div>
			<div id="announcementDiv" style="display:none;height:25px;line-height:25px;"></div>
		</div>
		
		<div id="layout1" style="width: 99.2%; margin: 0 auto;">
			<div position="left" id="leftMenuDiv" title="导航菜单"></div>
			<div position="center" id="framecenter">
				<div tabid="home" title="我的桌面" style="height: 300px;">
					<div style="position: absolute; top:0px; left: 0px; height:24px;">
						<img src="resource/images/mbi_up.gif" onclick="CollapseLogo(this);" style=" margin-top: 5px; margin-right:4px; cursor: pointer;"/>
					</div>
					<iframe frameborder="0" name="home" id="home" src="jsp/sys/mywork.jsp"></iframe>
				</div>
			</div>
		</div>
		
		<!-- 隐藏区域 -->
		<iframe id="downloadFrame" name="downloadFrame" style="display: none;"></iframe>
		<!-- 
		<div id="orgChange" style="dispaly:none;">
			<br>
			机构切换：<select id="updateOrg" style=" width: 160px;">
			<%out.print(user.getCurSubOrgOptions());%>
			</select>
			<script type="text/javascript">
				$("#updateOrg").val(_nowOrg);
			</script>
		</div>
		 -->
		<div id="cssChange" style="display: none;">
			<br />
		    皮肤切换：<select id="updateCss" style=" width: 160px;">
		    	<option value="Aqua">蓝色</option>
		    	<option value="Green">绿色</option>
		    	<option value="Silvery">银色</option>
			</select>
			<script type="text/javascript">
				$("#updateCss").val(_userCss);
			</script>
		</div>
	</body>
</html>
